package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.IndexFilterEntity;

/**
 * @description: 首页看板筛选偏好配置
 * @Author: hongxiao
 * @date: 2019-02-27 14:49
 * @since v1.0
 */
public interface IndexFilterModel extends IModel<IndexFilterEntity> {
    /**
     * 保存
     * @param entity 实体
     * @return
     * @throws
     *
     * @author hongxiao
     * @date: 2019-02-27 15:04
     * @since v1.0
     * @version v1.0
     */
    Integer save(IndexFilterEntity entity) throws XbbException;

    /**
     * 获取看板筛选偏好配置
     * @param corpid 公司id
     * @param userId 员工id
     * @return
     * @throws
     *
     * @author hongxiao
     * @date: 2019-02-27 14:54
     * @since v1.0
     * @version v1.0
     */
    IndexFilterEntity getByCorpidAndUserId(String corpid, String userId);
}
